<?php

namespace App\Models\Syj\Broker;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Login extends Model
{
    use HasFactory;
    protected $table='ly_wx_users';
    //查询用户信息
    public static function findUser($params){
        //dd($params);
        return self::query()->where($params)->get()->toArray();
    }
    //注册新用户
    public static function WechatRegister($params){
        return self::query()->insert($params);
    }

}
